
.ui-calendar {
  width: 240px;
}

.ui-calendar-header,
.ui-calendar-footer {
  position: relative;
  height: 40px;
  line-height: 40px;
  text-align: center;
  user-select: none;

  a {
    color: #666;
    text-decoration: none;

    &:hover {
      color: #2db7f5;
      text-decoration: none;
    }
  }
}

/* header */
.ui-calendar-header {
  border-bottom: 1px solid #e9e9e9;

  .ui-calendar-header-pre-btn,
  .ui-calendar-header-next-btn {
    position: absolute;
    top: 0;
    padding: 0 8px;
    font-size: 16px;
    display: inline-block;
    line-height: 40px;
  }

  .ui-calendar-header-pre-btn {
    left: 0;
  }

  .ui-calendar-header-next-btn {
    right: 0;
  }

  .ui-calendar-header-btn {
    padding: 0 4px;
  }
}

/* body */
.ui-calendar-body {
  height: 230px;
  padding: 4px 8px;

  .ui-calendar-table {
    width: 100%;
    margin: 0 auto;

    .ui-calendar-column {
      text-align: center;
    }

    .ui-calendar-cell {
      padding: 4px 0;

      .ui-calendar-text {
        display: block;
        margin: 0 auto;
        color: #333;
        border-radius: 4px;
        width: 24px;
        height: 24px;
        line-height: 22px;
        border: 1px solid transparent;
        padding: 0;
        background: transparent;
        text-align: center;
        font-weight: normal;

        &:hover {
          background: #eaf8fe;
          cursor: pointer;
        }
      }

      .ui-calendar-text-others {
        color: #ccc;
      }

      .ui-calendar-text-today {
        color: #2db7f5;
        border-color: #2db7f5;
      }

      .ui-calendar-text-disabled {
        color: #ccc;
        cursor: not-allowed;
      }

      .ui-calendar-text-selected {
        background: #2db7f5;
        color: #fff;

        &:hover {
          background: #2db7f5;
          cursor: pointer;
        }
      }
    }

    &.ui-calendar-year {
      
      .ui-calendar-cell {
        padding: 14px 0;

        .ui-calendar-text {
          width: 44px;
          height: 28px;
          line-height: 26px;
        }
      } 
    }

    &.ui-calendar-month {
      
      .ui-calendar-cell {
        padding: 14px 0;

        .ui-calendar-text {
          width: 54px;
          height: 28px;
          line-height: 26px;
        }
      } 
    }

  }
}

/*footer*/
.ui-calendar-footer {
  border-top: 1px solid #e9e9e9;

  .ui-calendar-footer-btn {
    padding: 0 4px;
  }
}